define(function(require, exports){

require('jquery');
require('utility');
require('handlebars');

var fn = require('/js/fn.js');

var data = [];

for(var i=1; i<14; i++){
	data.push({
		id : i,
		url : 'http://kgsite.b0.upaiyun.com/p1/'+i+'.JPG',
		info : 'This is my picture'
	})
}

var F = {
	init : function(){
		var tpl = $('#js_photo_tpl').html();
		tpl = KG.Handlebars.compile(tpl)({
			elem : data
		});


		$('#js_main').html(tpl);
	}
};


exports.init = function(){
	fn.initFirstNav('photo');

	F.init();
};

});